home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / wgdb-42.lha / wgdb-4.2 / gdb / gdbcore.h < prev    next >
C/C++ Source or Header  |  1992-09-11  |  2KB  |  75 lines

  1. /* Machine independent variables that describe the core file under GDB.
  2.    Copyright (C) 1986, 1987, 1989, 1990  Free Software Foundation, Inc.
  3.  
  4. This file is part of GDB.
  5.  
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Interface routines for core, executable, etc.  */
  21.  
  22. #include "bfd.h"        /* Binary File Description */
  23.  
  24. /* Return the name of the executable file as a string.
  25.    ERR nonzero means get error if there is none specified;
  26.    otherwise return 0 in that case.  */
  27. char *get_exec_file ();
  28.  
  29. /* Nonzero if there is a core file.  */
  30. int have_core_file_p ();
  31.  
  32. /* Read "memory data" from whatever target or inferior we have. 
  33.    Returns zero if successful, errno value if not.  EIO is used
  34.    for address out of bounds.  If breakpoints are inserted, returns
  35.    shadow contents, not the breakpoints themselves.  From breakpoint.c.  */
  36. int read_memory_nobpt ();
  37.  
  38. /* Report a memory error with error().  */
  39.  
  40. void memory_error ();
  41.  
  42. /* Like target_read_memory, but report an error if can't read.  */
  43. void read_memory ();
  44.  
  45. /* Read an integer from debugged memory, given address and number of bytes.  */
  46. long read_memory_integer ();
  47.  
  48. /* If this is prototyped, need to deal with void* vs. char*.  */
  49. void write_memory ();
  50.  
  51. /* Hook for `exec_file_command' command to call.  */
  52.  
  53. extern void (*exec_file_display_hook) ();
  54.    
  55. /* Binary File Diddlers for the exec and core files */
  56. extern bfd *core_bfd;
  57. extern bfd *exec_bfd;
  58.  
  59. /* Whether to open exec and core files read-only or read-write.  */
  60.  
  61. extern int write_files;
  62.  
  63. void core_file_command ();
  64. void exec_file_command ();
  65. void validate_files ();
  66. unsigned int register_addr ();
  67. int xfer_core_file ();
  68. void fetch_core_registers ();
  69. void registers_fetched ();
  70.  
  71. #if !defined (KERNEL_U_ADDR)
  72. extern CORE_ADDR kernel_u_addr;
  73. #define KERNEL_U_ADDR kernel_u_addr
  74. #endif
  75.